<template>
  <div class="add-course-bg">
    <!-- 返回按钮 -->
    <div class="back-btn-bar">
      <button class="back-btn" @click="goBackToType">
        <el-icon><ArrowLeft /></el-icon> 返回课程管理
      </button>
    </div>
    <div class="add-course-page">
      <div class="page-header">
        <h2 class="page-title">新增课程</h2>
        <p class="page-desc">
          请填写课程的相关信息，带
          <span class="required">*</span>
          为必填项，课程图片为必填，课程视频为可选
        </p>
      </div>

      <el-form
        :model="form"
        label-width="120px"
        class="add-form"
        :rules="rules"
        ref="formRef"
      >
        <el-form-item
          label="课程分类名称"
          prop="lessonTypeName"
          class="form-item"
        >
          <el-select
            v-model="form.lessonTypeName"
            placeholder="请选择课程分类名称"
            filterable
            style="width: 100%"
            class="form-input"
          >
            <el-option
              v-for="item in lessonTypeList"
              :key="item.id"
              :label="item.lessonType"
              :value="item.lessonType"
            />
          </el-select>
        </el-form-item>

        <el-form-item label="课程名称" prop="lesson" class="form-item">
          <el-input
            v-model="form.lesson"
            placeholder="请输入课程名称"
            class="form-input"
            maxlength="50"
            show-word-limit
          />
        </el-form-item>

        <el-form-item label="课程简介" prop="blurb" class="form-item">
          <el-input
            v-model="form.blurb"
            type="textarea"
            placeholder="请输入课程简介"
            class="form-textarea"
            :rows="6"
            maxlength="500"
            show-word-limit
          />
        </el-form-item>

        <el-form-item
          label="课程描述"
          prop="lessonDescription"
          class="form-item"
        >
          <div class="editor-container">
            <QuillEditor
              v-model:content="form.lessonDescription"
              contentType="html"
              theme="snow"
              toolbar="full"
              :options="editorOptions"
              @ready="onEditorReady"
              placeholder="请输入课程描述..."
            />
          </div>
        </el-form-item>

        <el-form-item
          label="课程图片"
          prop="file"
          class="form-item upload-item"
        >
          <el-upload
            class="upload-demo"
            action=""
            :auto-upload="false"
            :show-file-list="false"
            :on-change="handleImageChange"
            :before-upload="beforeUpload"
          >
            <el-button type="primary" class="upload-btn">
              <i class="el-icon-upload"></i> 选择图片
            </el-button>
          </el-upload>

          <!-- 图片预览区域 -->
          <div class="upload-preview" v-if="form.fileUrl">
            <img :src="form.fileUrl" class="preview-img" />
            <el-button link class="remove-img" @click="removeImage">
              <i class="el-icon-delete"></i> 移除
            </el-button>
          </div>

          <!-- 验证状态显示 -->
          <div v-if="imageValidation.hasError" class="validation-error">
            <el-icon class="error-icon"><Warning /></el-icon>
            <span class="error-text">{{ imageValidation.errorMessage }}</span>
          </div>

          <div
            v-else-if="form.fileUrl && !imageValidation.hasError"
            class="validation-success"
          >
            <el-icon class="success-icon"><CircleCheck /></el-icon>
            <span class="success-text">图片验证通过</span>
          </div>

          <p class="upload-tip">
            <span class="required">*</span>
            建议上传JPG、PNG格式的图片，大小不超过2MB
          </p>
        </el-form-item>

        <el-form-item label="课程视频" class="form-item upload-item">
          <el-upload
            class="upload-demo"
            action=""
            :auto-upload="false"
            :show-file-list="false"
            :on-change="handleVideoChange"
            :before-upload="beforeVideoUpload"
            accept="video/*"
            :limit="1"
          >
            <el-button type="primary" class="upload-btn">
              <i class="el-icon-upload"></i> 选择视频
            </el-button>
          </el-upload>

          <div class="upload-preview" v-if="form.videoUrl">
            <video :src="form.videoUrl" class="preview-video" controls></video>
            <div class="video-info">
              <p class="video-name">{{ form.video1?.name }}</p>
              <p class="video-size">
                {{ formatFileSize(form.video1?.size) }}
              </p>
            </div>
            <el-button link class="remove-img" @click="removeVideo">
              <i class="el-icon-delete"></i> 移除
            </el-button>
          </div>

          <p class="upload-tip">
            可选上传：支持MP4、WebM、OGG、AVI、MOV格式视频，大小不超过50MB
          </p>
        </el-form-item>

        <el-form-item class="form-actions">
          <el-button
            type="primary"
            @click="submit"
            class="submit-btn"
            :disabled="!canSubmit"
          >
            <i class="el-icon-check"></i> 提交
          </el-button>
          <el-button @click="goBack" class="cancel-btn">
            <i class="el-icon-arrow-left"></i> 取消
          </el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script setup>
import { ref, onMounted, computed } from "vue";
import { useRouter } from "vue-router";
import { ElMessage, ElMessageBox } from "element-plus";
import axios from "axios";
import { ArrowLeft, Warning, CircleCheck } from "@element-plus/icons-vue";
import { QuillEditor } from "@vueup/vue-quill";
import "@vueup/vue-quill/dist/vue-quill.snow.css";

const router = useRouter();
const formRef = ref(null);

// 在组件挂载时获取课程分类列表
onMounted(async () => {
  try {
    const res = await axios.get("/tielingpowergriduavservice/lesson-type/list");
    if (res.data.code === 200) {
      lessonTypeList.value = res.data.data || [];
    } else {
      ElMessage.error("获取课程分类失败：" + res.data.msg);
    }
  } catch (e) {
    ElMessage.error("请求异常：" + e.message);
  }
});

// Quill编辑器配置
const editorOptions = {
  modules: {
    toolbar: [
      ["bold", "italic", "underline", "strike"],
      ["blockquote", "code-block"],
      [{ header: 1 }, { header: 2 }],
      [{ list: "ordered" }, { list: "bullet" }],
      [{ script: "sub" }, { script: "super" }],
      [{ indent: "-1" }, { indent: "+1" }],
      [{ direction: "rtl" }],
      [{ size: ["small", false, "large", "huge"] }],
      [{ header: [1, 2, 3, 4, 5, 6, false] }],
      [{ color: [] }, { background: [] }],
      [{ font: [] }],
      [{ align: [] }],
      ["clean"],
      ["link", "image", "video"],
    ],
    clipboard: {
      matchVisual: false,
      matchers: [],
    },
    history: {
      delay: 3000,
      maxStack: 50,
      userOnly: true,
    },
    keyboard: {
      bindings: {
        tab: false,
        "list autofill": false,
      },
    },
    syntax: false,
    table: false,
  },
  placeholder: "请输入课程描述...",
  readOnly: false,
  bounds: document.body,
  scrollingContainer: null,
  theme: "snow",
  formats: [
    "header",
    "font",
    "size",
    "bold",
    "italic",
    "underline",
    "strike",
    "blockquote",
    "list",
    "bullet",
    "indent",
    "link",
    "image",
    "video",
    "color",
    "background",
    "align",
    "direction",
    "code-block",
    "script",
  ],
};

const onEditorReady = (quill) => {
  // console.log("Quill编辑器已准备就绪", quill);

  // 设置编辑器的最小高度
  quill.root.style.minHeight = "200px";

  // 监听内容变化，用于表单验证
  quill.on("text-change", function () {
    // 可以在这里添加实时验证逻辑
  });

  // 处理图片上传
  const toolbar = quill.getModule("toolbar");
  toolbar.addHandler("image", function () {
    const input = document.createElement("input");
    input.setAttribute("type", "file");
    input.setAttribute("accept", "image/*");
    input.click();

    input.onchange = () => {
      const file = input.files[0];
      if (file) {
        const reader = new FileReader();
        reader.onload = (e) => {
          const range = quill.getSelection();
          quill.insertEmbed(range.index, "image", e.target.result);
        };
        reader.readAsDataURL(file);
      }
    };
  });
};

const form = ref({
  lessonTypeId: "",
  lessonTypeName: "",
  lesson: "",
  blurb: "",
  lessonDescription: "",
  file: null,
  fileUrl: "",
  video1: null,
  videoUrl: "",
});

const rules = {
  lessonTypeName: [
    { required: true, message: "请选择课程分类", trigger: "blur" },
  ],
  lesson: [
    { required: true, message: "请输入课程名称", trigger: "blur" },
    { min: 2, max: 50, message: "长度在2到50个字符", trigger: "blur" },
  ],
  blurb: [{ required: true, message: "请输入课程简介", trigger: "blur" }],
  lessonDescription: [
    { required: true, message: "请输入课程描述", trigger: "blur" },
    { min: 10, message: "至少输入10个字符", trigger: "blur" },
  ],
  file: [{ required: true, message: "请上传课程图片", trigger: "change" }],
};

const lessonTypeList = ref([]);

// 图片验证状态管理
const imageValidation = ref({
  hasError: false,
  errorMessage: "",
});

const beforeUpload = (file) => {
  // 重置验证状态
  imageValidation.value.hasError = false;
  imageValidation.value.errorMessage = "";

  const isJpgOrPng = file.type === "image/jpeg" || file.type === "image/png";
  const isLt2M = file.size / 1024 / 1024 < 2;

  if (!isJpgOrPng) {
    const errorMsg = "上传图片只能是 JPG/PNG 格式!";
    imageValidation.value.hasError = true;
    imageValidation.value.errorMessage = errorMsg;
    ElMessage.error(errorMsg);
    return false;
  }
  if (!isLt2M) {
    const errorMsg = "上传图片大小不能超过 2MB!";
    imageValidation.value.hasError = true;
    imageValidation.value.errorMessage = errorMsg;
    ElMessage.error(errorMsg);
    return false;
  }
  return true;
};

const handleImageChange = (file) => {
  form.value.file = file.raw;
  form.value.fileUrl = URL.createObjectURL(file.raw);

  // 清除验证错误状态
  imageValidation.value.hasError = false;
  imageValidation.value.errorMessage = "";
};

const removeImage = () => {
  form.value.file = null;
  form.value.fileUrl = "";

  // 清除验证状态
  imageValidation.value.hasError = false;
  imageValidation.value.errorMessage = "";
};

// 计算属性：是否可以提交
const canSubmit = computed(() => {
  // 检查是否有图片验证错误
  if (imageValidation.value.hasError) {
    return false;
  }

  // 检查是否已上传图片
  if (!form.value.file) {
    return false;
  }

  return true;
});

const beforeVideoUpload = (file) => {
  // 检查文件类型
  const allowedTypes = [
    "video/mp4",
    "video/webm",
    "video/ogg",
    "video/avi",
    "video/mov",
  ];
  const isVideo = allowedTypes.includes(file.type);

  // 检查文件大小 (50MB)
  const isLt50M = file.size / 1024 / 1024 < 50;

  if (!isVideo) {
    ElMessage.error(
      "上传文件只能是视频格式! 支持 MP4、WebM、OGG、AVI、MOV 格式"
    );
    return false;
  }

  if (!isLt50M) {
    ElMessage.error("上传视频大小不能超过 50MB!");
    return false;
  }

  // 检查文件名长度
  if (file.name.length > 100) {
    ElMessage.error("文件名长度不能超过100个字符!");
    return false;
  }

  return true;
};

const handleVideoChange = (file) => {
  if (file && file.raw) {
    form.value.video1 = file.raw;
    form.value.videoUrl = URL.createObjectURL(file.raw);
    // 清除之前的验证错误
    formRef.value?.clearValidate("video1");
  }
};

const removeVideo = () => {
  form.value.video1 = null;
  form.value.videoUrl = "";
};

const formatFileSize = (bytes) => {
  if (!bytes || bytes === 0) return "0 Bytes";
  const k = 1024;
  const sizes = ["Bytes", "KB", "MB", "GB", "TB"];
  const i = Math.floor(Math.log(bytes) / Math.log(k));
  return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + " " + sizes[i];
};

const submit = async () => {
  try {
    await formRef.value.validate();

    // 检查必需的文件是否已上传
    if (!form.value.file) {
      ElMessage.error("请上传课程图片");
      return;
    }

    const formData = new FormData();

    // 根据选择的课程分类名称找到对应的ID
    const selectedType = lessonTypeList.value.find(
      (item) => item.lessonType === form.value.lessonTypeName
    );
    let lessonTypeId = "";
    if (selectedType) {
      lessonTypeId = selectedType.id;
      formData.append("lessonTypeId", lessonTypeId);
    }

    // 只传纯文本内容
    const blurbText = form.value.blurb.replace(/<[^>]+>/g, "");
    const lessonDescriptionText = form.value.lessonDescription.replace(
      /<[^>]+>/g,
      ""
    );

    formData.append("lesson", form.value.lesson); // 课程名称
    formData.append("blurb", blurbText); // 课程简介（纯文本）
    formData.append("lessonDescription", lessonDescriptionText); // 课程描述（富文本HTML）
    formData.append("file", form.value.file); // 课程图片

    // 视频文件是可选的，只有在用户上传时才添加
    if (form.value.video1) {
      formData.append("video1", form.value.video1);
    }

    // 发送请求
    const res = await axios.post(
      "/tielingpowergriduavservice/lesson/add",
      formData,
      {
        headers: {
          "Content-Type": "multipart/form-data",
        },
        timeout: 60000, // 设置60秒超时，因为视频文件可能较大
      }
    );

    if (res.data.code === 200) {
      ElMessage.success("新增成功");
      router.back();
    } else {
      ElMessage.error("新增失败：" + res.data.msg);
    }
  } catch (error) {
    if (error.response) {
      // 服务器响应了错误状态码
      if (error.response.status === 500) {
        ElMessage.error(
          "服务器内部错误 (500)，请检查：\n1. 后端服务是否正常运行\n2. 请求参数是否正确\n3. 服务器日志中的具体错误信息"
        );
      } else {
        ElMessage.error(
          "新增失败：" +
            (error.response.data?.message ||
              error.response.data?.msg ||
              error.message)
        );
      }
    } else if (error.request) {
      // 请求已发出但没有收到响应
      ElMessage.error("无法连接到服务器，请检查网络连接和后端服务状态");
    } else if (error.message && !error.message.includes("validation")) {
      ElMessage.error("请求异常：" + error.message);
    }
  }
};

const goBack = () => {
  if (
    form.value.lessonTypeName ||
    form.value.lesson ||
    form.value.blurb ||
    form.value.lessonDescription ||
    form.value.file ||
    form.value.video1
  ) {
    ElMessageBox.confirm("当前表单内容未保存，确定要离开吗？", "提示", {
      confirmButtonText: "确定",
      cancelButtonText: "取消",
      type: "warning",
    })
      .then(() => {
        router.push({ name: "CourseTypes", query: { tab: "course" } });
      })
      .catch(() => {});
  } else {
    router.push({ name: "CourseTypes", query: { tab: "course" } });
  }
};

const goBackToType = () => {
  router.push({ name: "CourseTypes", query: { tab: "course" } });
};
</script>

<style scoped>
html,
body,
#app {
  width: 100%;
  min-width: 0;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
}
.add-course-bg {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #e0f7fa 0%, #f8fafc 60%, #d1e9fc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

.add-course-bg::before {
  content: "";
  position: absolute;
  left: -100px;
  top: 80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    #b2ebf2 0%,
    #e0f7fa 80%,
    transparent 100%
  );
  border-radius: 50%;
  z-index: 1;
  opacity: 0.5;
}

.add-course-bg::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: 60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    #90caf9 0%,
    #d1e9fc 80%,
    transparent 100%
  );
  border-radius: 50%;
  z-index: 1;
  opacity: 0.4;
}
.back-btn-bar {
  position: absolute;
  top: 38px;
  left: 60px;
  z-index: 10;
}

.back-btn {
  font-size: 16px;
  color: #3498db;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.08);
  padding: 8px 22px;
  border: none;
  transition: background 0.2s;
}
.add-course-page {
  max-width: 800px;
  width: 100%;
  margin: 80px auto;
  background: #fff;
  padding: 38px 48px 32px 48px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.13);
  position: relative;
  z-index: 2;
}

/* 页面头部 */
.page-header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
}

.page-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background-color: #3498db;
  margin-right: 10px;
  border-radius: 2px;
}

.page-desc {
  font-size: 14px;
  color: #7f8c8d;
  margin: 0;
}

.required {
  color: #e74c3c;
  font-weight: bold;
}

/* 表单样式 */
.add-form {
  width: 100%;
}

.form-item {
  margin-bottom: 25px;
  transition: all 0.3s;
}

.form-input {
  width: 100%;
  height: 42px;
  border-radius: 6px;
  border-color: #e2e8f0;
  transition: all 0.3s;
}

.form-input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-textarea {
  width: 100%;
  border-radius: 6px;
  border-color: #e2e8f0;
  resize: vertical;
}

/* 富文本编辑器样式 */
.editor-container {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.editor-container:focus-within {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.editor-container :deep(.ql-toolbar) {
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background-color: #f8fafc;
  padding: 8px 12px;
}

.editor-container :deep(.ql-toolbar button) {
  margin-right: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.editor-container :deep(.ql-toolbar button:hover) {
  background-color: #e2e8f0 !important;
}

.editor-container :deep(.ql-toolbar button.ql-active) {
  background-color: #3498db !important;
  color: white !important;
}

.editor-container :deep(.ql-container) {
  border: none !important;
  height: 300px !important;
  font-size: 14px;
  background-color: #ffffff;
}

.editor-container :deep(.ql-editor) {
  padding: 12px 15px !important;
  min-height: 276px !important;
  line-height: 1.6;
  color: #2c3e50;
}

.editor-container :deep(.ql-editor.ql-blank::before) {
  color: #94a3b8;
  font-style: italic;
  font-size: 14px;
}

.editor-container :deep(.ql-editor p) {
  margin-bottom: 8px;
}

.editor-container :deep(.ql-editor h1),
.editor-container :deep(.ql-editor h2),
.editor-container :deep(.ql-editor h3),
.editor-container :deep(.ql-editor h4),
.editor-container :deep(.ql-editor h5),
.editor-container :deep(.ql-editor h6) {
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e293b;
}

.editor-container :deep(.ql-editor blockquote) {
  border-left: 4px solid #3498db;
  padding-left: 12px;
  margin: 12px 0;
  color: #64748b;
  font-style: italic;
}

.editor-container :deep(.ql-editor code) {
  background-color: #f1f5f9;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.editor-container :deep(.ql-editor pre) {
  background-color: #f8fafc;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin: 12px 0;
  overflow-x: auto;
}

.editor-container :deep(.ql-editor img) {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 8px 0;
}

.editor-container :deep(.ql-editor a) {
  color: #3498db;
  text-decoration: none;
}

.editor-container :deep(.ql-editor a:hover) {
  text-decoration: underline;
}

.editor-container :deep(.ql-editor ul),
.editor-container :deep(.ql-editor ol) {
  padding-left: 20px;
  margin: 8px 0;
}

.editor-container :deep(.ql-editor li) {
  margin-bottom: 4px;
}

/* 上传区域 */
.upload-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.upload-btn {
  background-color: #3498db;
  border-color: #3498db;
  transition: all 0.3s;
}

.upload-btn:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 120px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.preview-img {
  max-width: 200px;
  max-height: 120px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 4px;
  border: 1px solid #f1f5f9;
}

.preview-video {
  max-width: 200px;
  max-height: 120px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 4px;
  border: 1px solid #f1f5f9;
  background: #000;
}

.video-info {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #7f8c8d;
  margin-left: 10px;
  min-width: 120px;
}

.video-name {
  margin-bottom: 4px;
  font-weight: 500;
  color: #2c3e50;
  word-break: break-all;
}

.video-size {
  margin-bottom: 0;
  color: #95a5a6;
}

.remove-img {
  color: #e74c3c;
  padding: 5px 10px;
  height: auto;
}

.remove-img:hover {
  color: #c0392b;
  background-color: rgba(231, 76, 60, 0.05);
}

/* 验证状态样式 */
.validation-error,
.validation-success {
  display: flex;
  align-items: center;
  margin: 8px 0 0 120px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
}

.validation-error {
  background: #fef0f0;
  border: 1px solid #fbc4c4;
  color: #f56c6c;
}

.validation-success {
  background: #f0f9ff;
  border: 1px solid #b3d8ff;
  color: #409eff;
}

.error-icon,
.success-icon {
  margin-right: 8px;
  font-size: 16px;
}

.upload-tip {
  font-size: 12px;
  color: #95a5a6;
  margin: 5px 0 0 120px;
  line-height: 1.5;
}

/* 按钮区域 */
.form-actions {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-start;
  gap: 15px;
}

.submit-btn {
  background-color: #3498db;
  border-color: #3498db;
  padding: 8px 24px;
  font-size: 14px;
}

.submit-btn:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.submit-btn:disabled {
  background-color: #c0c4cc;
  border-color: #c0c4cc;
  cursor: not-allowed;
  opacity: 0.6;
}

.submit-btn:disabled:hover {
  background-color: #c0c4cc;
  border-color: #c0c4cc;
}

.cancel-btn {
  padding: 8px 24px;
  font-size: 14px;
  color: #7f8c8d;
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

.cancel-btn:hover {
  background-color: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .add-course-page {
    margin: 15px;
    padding: 20px 15px;
  }

  .upload-preview,
  .upload-tip {
    margin-left: 0;
  }

  .form-actions {
    flex-direction: column;
  }

  .submit-btn,
  .cancel-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .preview-img {
    max-width: 150px;
  }
}
</style>
